package com.example.springaop.brokerdemo1;

import com.example.springaop.brokerdemo1.proxy.HouseProxy;
import com.example.springaop.brokerdemo1.realsubject.RealHouseSubject;
import com.example.springaop.brokerdemo1.subject.HouseSubject;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024-12-27
 * Time: 17:47
 */
public class StaticMain {
    public static void main(String[] args) {
        HouseSubject subject = new RealHouseSubject();
        HouseSubject proxy = new HouseProxy(subject);
        proxy.rentHouse();

    }
}
